import java.awt.*;

import javax.swing.*;

/*
 * Controls data going to and coming from the GUI class
 */
public class Control extends JApplet {
	   private int APPLET_WIDTH = 500;
	   private int APPLET_HEIGHT = 500;
	   private Login lg;
	   private Member current;
	   private JTabbedPane tabs;

       public void init()
        {
    	   
    	MemberData fullList = new MemberData();
    		//inits initial admin (as doctor) account
    	Member admin = new Doctor("admin", "admin", "admin", "admin", "admin", fullList.getSize());
    		//adds account to list
    	fullList.addMember(admin);
         //tabbed pane initialized
    	 tabs = new JTabbedPane();
         //adding login pane
         lg = new Login(current, fullList, tabs);
         tabs.addTab("Login" , lg);
         //adding tabbed pane
         getContentPane().add(tabs);

         setSize (APPLET_WIDTH, APPLET_HEIGHT); //set Applet size

    }
}